/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package czStvDpds.graphics3D.gui;

/**
 *
 * @author Ondra
 */
public class CheckboxEvent {

    private LComponent source;
    private int mouseX, mouseY;
    private boolean state;

    /**
     * Vytvori novou checkboxovou udalost
     *
     * @param source komponenta, ktera za to muze
     * @param state jeji novy stav
     * @param mouseX pozice mysi pri udalosti
     * @param mouseY - || -
     */
    public CheckboxEvent(LComponent source, boolean state, int mouseX, int mouseY) {
        this.source = source;
        this.mouseX = mouseX;
        this.mouseY = mouseY;
        this.state = state;
    }

    public LComponent getSource() {
        return source;
    }

    public int getMouseX() {
        return mouseX;
    }

    public int getMouseY() {
        return mouseY;
    }

    public boolean getState() {
        return state;
    }
    
    
}
